<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ page import="com.linkage.user.pojo.User"  %>
<%
	User user = (User)session.getAttribute("LOGIN_USER_KEY_IN_SESSION");
    request.setAttribute("contextPath", request.getContextPath());
%>
<html>
<head>
<title>Pay Order</title>
<script type="text/javascript" src="${contextPath }/js/jquery-1.7.2.js"></script>
	<script type="text/javascript">
	   function check(){
		   var password = $("#password").val();
		   var pwd="<%=user.getPassword()%>"; 
		   if(password == pwd) {
		       $("#form1").submit();
		   }else{
			   alert("校验失败");
		   }
			   }
	</script>

</head>
<body>
	<a href="javaScript:history.go(-1)">返回</a>
	<br/><br/>
	<form id="form1" action="/demo/user/payMoney/${order.orderId}" method="post" >
		<tr>
		<td><span class="spanPrice">支付金额：</span><span class="price_t">&yen;${order.total }</span></td>
		<td><span class="spanOrderId">编号：${order.orderId }</span></td>
		</tr>
	<br><br>
        <tr> <td>支付密码：</td> 
          <td>
          	<input type="password" value="" name="password" id="password"/>
          </td>
        </tr> <br>
       <input type="button" id="checkBtn"  value="确认支付" onclick="check()"/> 
	</form>
</body>
</html>